package cn.icatw.gulimall.member.feign;

import cn.icatw.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author icatw
 * @date 2022/4/3
 * @email 762188827@qq.com
 * @apiNote
 */
@FeignClient("gulimall-order")
public interface OrderFeignService {
    /**
     * 订单详情分页，查下当前登陆用户的所有订单信息
     *
     * @param params 参数个数
     * @return {@link R}
     */
    @PostMapping("order/order/listWithItem")
    R listWithItem(@RequestBody Map<String, Object> params);
}
